#include "protocol_value.hpp"

namespace protocol
{
    const char * cmd_2_str(uint16_t type)
    {

#define USE_SWITCH

#define PROTOCOL_CMD(class, cmd0, cmd1, cmd1_value) \
        case cmd1_value: \
            { \
                return #cmd1; \
            }

#include "protocol_value.def"

#undef PROTOCOL_CMD

#undef USE_SWITCH

        return "UNKNOWN_CMD";
    }
};

